#coding:utf-8

import numpy as np

def kernel_test001():
    kernel=np.array(range(1,28)).reshape((3,3,3))
    print(kernel)
    print(kernel[0,2])

def np_matmul():
    kernel=np.ones((3,2))
    datas=np.array([1,1])
    res=np.matmul(kernel,datas)
    print(res)
    print(res.shape)
def slices():
    a=[i for i in range(10)]
    print(a[-1])
    print(a[-2])

if __name__=='__main__':
    # kernel_test001()
    # np_matmul()
    slices()